import 'package:flutter/services.dart';

class AsrManager {
//  建立方法调用 通信
  static const MethodChannel _methodChannel = MethodChannel('asr_plugin');
  static Future<String> start({Map params}) async {
    print('start1');
    var res = await _methodChannel.invokeMethod('start',params ?? {});
     print('start2');
     return res;
  }
  static Future<String> stop () async{
    return await _methodChannel.invokeMethod('stop');
  }

  static Future<String> cancel() async{
    return await _methodChannel.invokeMethod('cancel');
  }


}